<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<link href='/pintuan/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/pintuan/Public/Member/js/wechat.js'></script>
<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
					<li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/index');?>">首次关注设置</a></li>
					<li class="<?php if((ACTION_NAME) == "classify"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/classify');?>">自定义菜单设置</a></li>
					<li class="<?php if((ACTION_NAME) == "keyword"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/keyword');?>">关键词回复</a></li>
					<li class="<?php if((ACTION_NAME) == "token"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/token');?>">微信接口配置</a></li>
					<li class="<?php if((ACTION_NAME) == "auth"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/auth');?>">微信授权配置</a></li>
					<li class="<?php if((ACTION_NAME) == "pay"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/pay');?>">运费&支付管理</a></li>
				</ul>
			</div>

		
		

			

	<div id="reply_keyword" class="r_con_wrap">
	    <div class="control_btn"><a href="<?php echo U('Wechat/keywordShow');?>" class="btn_green btn_w_120">添加关键字</a></div>
	    <table border="0" cellpadding="5" cellspacing="0" class="r_con_table">
	        <thead>
	            <tr>
	                <td width="10%" nowrap="nowrap">序号</td>
	                <td width="25%" nowrap="nowrap">触发关键词</td>
	                <td width="15%" nowrap="nowrap">匹配模式</td>
	                <td width="35%" nowrap="nowrap">回复内容</td>
	                <td width="10%" nowrap="nowrap" class="last">操作</td>
	            </tr>
	        </thead>
	        <tbody>
	          <?php if(is_array($lists)): foreach($lists as $k=>$v): ?><tr>
	                <td nowrap="nowrap"><?php echo ($k+1); ?></td>
	                <td nowrap="nowrap">【<?php echo ($v["keywords"]); ?>】</td>
	                <td nowrap="nowrap"><?php if(($v["matchingtype"]) == "0"): ?>精确匹配<?php else: ?>模糊匹配<?php endif; ?></td>
	                <td>【<?php if($v["msgtype"] == 'news'): ?>多图文消息<?php elseif($v["msgtype"] == 'text'): ?>文本消息<?php else: ?>单图文消息<?php endif; ?>】<?php echo ($v["content"]); ?></td>
	                <td class="last" nowrap="nowrap">
	                    <a href="<?php echo U('keywordShow',array('id'=>$v['id']));?>"><img src="/pintuan/Public/Member/images/ico/mod.gif" align="absmiddle" alt="修改" /></a>
	                    <a href="<?php echo U('delKeyword',array('id'=>$v['id']));?>" onClick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="/pintuan/Public/Member/images/ico/del.gif" align="absmiddle" alt="删除" /></a>
	                </td>
	            </tr><?php endforeach; endif; ?>
	         </tbody>
	    </table>
	    <div class="blank20"></div>
	    <div id="turn_page"><?php echo ($page); ?></div>
	</div> 

  
			
			</div>
			</div>
</body>
</html>